package com.icehand.controller;

import com.icehand.properties.MySettings;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 *
 * Created by icehand on 2017/5/15.
 */
@RestController
@RequestMapping(value="/config")
public class ConfigController {
	@Autowired
	private MySettings mySettings;

	@RequestMapping("/myname")
	public String myName(){
		return mySettings.getName();
	}
}
